/*
 * PredictionModuleBridgeFromTextFile.h
 *
 *  Created on: Dec 4, 2014
 *      Authors: Avihay Avitan & Stefan Farcas
 */
#include "PredictionModuleBridge.h"
#include "../TextFileParser/PredictionTextFileParser.h"
#include <stdlib.h>
#include <time.h>
#include <random>
#include <utility>
#include "AllUtils.h"


#ifndef PREDICTIONMODULEBRIDGEFROMTEXTFILE_H_
#define PREDICTIONMODULEBRIDGEFROMTEXTFILE_H_

using namespace TextFileParserSpace;

namespace PredictionModuleBridgeSpace {
/**
 * PredictionModuleBridgeFromTextFile - an implementation of PredictionModuleBridge wich loads the prediction data from a text file or generated by code
 * see [PredictionModule] and [PredictionModuleFiles] in core.ini file
 */
class PredictionModuleBridgeFromTextFile :  public PredictionModuleBridge {
public:
	PredictionModuleBridgeFromTextFile();
	virtual ~PredictionModuleBridgeFromTextFile();
	void setTextFileParser(ITextFileParser * parser);
	bool loadPredictionData( PassPrioritizer * pprio);

private:
	void createPredictionData( PassPrioritizer * pprio);

	PredictionTextFileParser * parser;

};

} /* namespace PredictionModuleBridge */

#endif /* PREDICTIONMODULEBRIDGEFROMTEXTFILE_H_ */
